package com.beeantec.jnrerc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author anthony
 * @since 2021-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("course_chapter")
public class CourseChapter extends Model<CourseChapter> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("statusId")
    private Integer statusId;

    private Integer sort;

    @TableField("courseId")
    private Long courseId;

    @TableField("chapterName")
    private String chapterName;

    @TableField("chapterDesc")
    private String chapterDesc;


    public static final String ID = "id";

    public static final String STATUSID = "statusId";

    public static final String SORT = "sort";

    public static final String COURSEID = "courseId";

    public static final String CHAPTERNAME = "chapterName";

    public static final String CHAPTERDESC = "chapterDesc";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
